<template>
  <div>
    <img alt="Vue logo" src="@/assets/logo.png">
    <HelloWorld msg="Welcome to Your Vue.js App" />
    <el-button @click="clickMenu" type="primary">主要按钮</el-button>
  </div>
</template>

<script>
import HelloWorld from '@/components/HelloWorld.vue'

export default {
  name: 'App',
  components: {
    HelloWorld
  },
  data() {
    return {
    }
  },
  methods: {
    clickMenu() {
      window.$sendParentMessage({ message: 'childAppEvent' })
      console.log($provideDataFromeParent());
      // console.log(this.$store.getters['globalDataFromParentStore/getInfo']);
      // console.log(this.$store.getters['globalDataFromParentStore/getInfoByKey']('name'));
      this.$store.dispatch("globalDataFromParentStore/setChangeInfo", { name: 'test' });
    }
  }
}
</script>

<style scoped></style>
